package com.rules.admin.expression;

public class SetModel implements Expression {
   private Expression modelIdExpression;
   private Expression modelValueExpression;

   public void accept(ExpressionVisitor visitor) {
      visitor.vistor(this);
   }

   public SetModel(Expression modelIdExpression, Expression modelValueExpression) {
      this.modelIdExpression = modelIdExpression;
      this.modelValueExpression = modelValueExpression;
   }

   public String toString() {
      StringBuilder builder = new StringBuilder();
      builder.append("$model.attr(").append(this.modelIdExpression).append(",").append(this.modelValueExpression).append(")");
      return builder.toString();
   }
}
